package day9;

public class Weekend2 {
	public static void main(String[] args) {
		int[] array = {98, 53, 2, 64, 14, 755, 0};
		for (int i = 1; i < array.length; i++) {
			for (int j = 0; j < array.length - i; j++) {
				if (array[j] > array[j + 1]) {
					int temp = array[j];
					array[j] = array[j + 1];
					array[j + 1] = temp;
				}
			}
		}
		for (int i = 0 ; i < array.length; i++) {
			System.out.print(array[i] + " ");
		}
		
		int[] array1;
	}
}
